<?php    $this -> load -> view('profile/menu');
 ?>

<div class="search_ads">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" id="tbody">
        <tbody>
            <tr>
                <td>
                <table width="100%" cellspacing="1" cellpadding="1" border="0">
                    <tbody>
                        <tr>
                            <td>
                            	<?php  
                            	
                            	  echo $this -> load -> view('search_adsent/box/miniform', $counts, true); ?>
                            <center>
                                <!--
                                <h1 style="color:red;font-size:18px;padding:3px;"> бесплатное размещение объявлений о продаже и аренде недвижимости <font color="black">Смоленск и Смоленская область :</font></h1>
                                -->
                                <table width="100%;">
                                    <tbody>
                                        <tr>
                                            <td align="left" style="vertical-align: top">
                                            <div id="region_links">
                                                <fieldset>
                                                    <legend>
                                                        Аренда недвижимости
                                                    </legend>
                                                    <div>
                                                        <a href="/question/rent/flat?region=<?php echo $counts['select'];?>">Квартиры и комнаты</a>&nbsp;<small>
                                                        	(<?php  
          
                                                      if(isset($type_count['rflat'])){
                                                        	echo $type_count['rflat'];
                                                        }else{
                                                        	echo "0";
                                                        } 
                                                  
                                                        	 ?>)
                                                        	
                                                        	</small>
                                                        <br>  
 
                                                        <a href="/question/rent/suburbian?region=<?php echo $counts['select'];?>">Дома коттеджи таунхаусы</a>&nbsp;<small>
                                                        	(<?php
                                                        	if(isset($type_count['rsuburbian'])){
                                                        	 echo $type_count['rsuburbian'];
                                                        }else{
                                                        	echo "0";
                                                        } ?>)</small>
                                                        <br>
                                                        <a href="/question/rent/office?obl_id=1&amp;region=<?php echo $counts['select'];?>">Нежилые помещения</a>&nbsp;<small>(<?php
                                                        	if(isset($type_count['roffice'])){
                                                        	 echo $type_count['roffice'];
                                                        }else{
                                                        	echo "0";
                                                        } ?>)</small>
                                                        <br>
                                                    </div>
                                                </fieldset>

                                                <fieldset>
                                                    <legend>
                                                        Продажа недвижимости
                                                    </legend>
                                                    <div>

                                                        <a href="/question/sale/flat?region=<?php echo $counts['select'];?>">Квартиры и комнаты</a>&nbsp;<small>   	(<?php  
          
                                                      if(isset($type_count['sflat'])){
                                                        	echo $type_count['sflat'];
                                                        }else{
                                                        	echo "0";
                                                        } 
                                                  
                                                        	 ?>)</small>
                                                        <br>
                                                        <a href="/question/sale/suburbian?region=<?php echo $counts['select'];?>">Дом, дача, коттедж, таунхаус</a>&nbsp;<small>(<?php
                                                        	if(isset($type_count['ssuburbian'])){
                                                        	 echo $type_count['ssuburbian'];
                                                        }else{
                                                        	echo "0";
                                                        } ?>)</small>
                                                        <br> 
                                                        <a href="/question/sale/office?region=<?php echo $counts['select'];?>">Нежилые помещения</a>&nbsp;<small>(<?php
                                                        	if(isset($type_count['soffice'])){
                                                        	 echo $type_count['soffice'];
                                                        }else{
                                                        	echo "0";
                                                        } ?>)</small>
                                                        <br>
                                                    </div>

                                                </fieldset>

                                            </div></td>
                                            <td   style="vertical-align: top">
                                            <div id="region_stat">
                                                <fieldset >
                                                    <legend>
                                                        Объявления со всей России
                                                    </legend>

                                                    <?php foreach ($adsall as $i):
                                                    ?>
                                                    <div>
                                                        <a href="/adsent/<?php echo $i['id']?>"><?php echo $i['fullname']; ?></a> (<?php echo $i['sadsent']; ?>)
                                                    </div>
                                                    <?php endforeach; ?>
                                                </fieldset>
                                            </div></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </center></td>
                        </tr>
                    </tbody>
                </table></td>
            </tr>
        </tbody>
    </table>

</div>